home *** CD-ROM | disk | FTP | other *** search
/ System Booster / System Booster.iso / Texteditors / XDME / Macros / C / h_h.xdme < prev    next >
Encoding:
Text File  |  1996-09-27  |  750 b   |  35 lines

  1. #
  2. #   insert header in an empty include-file
  3. #
  4. #   $VER: header4h V1.01 (25.03.1993)
  5. #
  6.  
  7. # Read in an empty header
  8. insfile $(dir)h.h
  9.  
  10. # insert file-name in header and footer
  11. find MODUL
  12. down insline
  13. tab ($file)
  14. find ENDE
  15. last right ($file)
  16.  
  17. # make a "good" #ifndef
  18. # look for #ifndef
  19. top
  20. find #ifndef
  21. # insert the filename after the #ifndef-statement
  22. last right push pos ($file) peek pos
  23. # look through the filename for all illegal chars and eliminate them
  24. repeat cr `if cl (tlate u) if `c=[ ./:]' (tlate 95) right'
  25. # get the new name
  26. pop pos scanf w
  27. # add it to the #define
  28. down last right ($scanf)
  29. # and as a comment at the #endif
  30. find #endif find /* repeat 3 right ($scanf)
  31.  
  32. # go to the top and position cursor
  33. top find DESCRIPTION
  34. down insline tab
  35.